from sqlalchemy import Column, Integer, String, DateTime
from utils.database import Base
from datetime import datetime


class ActivityApply(Base):
    """
    部门表
    """
    __tablename__ = 'activity_apply'

    id = Column(Integer, primary_key=True, autoincrement=True, comment='id')
    act_id = Column(Integer, comment='活动ID')
    user_id = Column(Integer, comment='用户ID')
    
    create_by = Column(String(64), nullable=True, default='', comment='创建者')
    create_time = Column(DateTime, nullable=True, default=datetime.now(), comment='创建时间')
    update_by = Column(String(64), nullable=True, default='', comment='更新者')
    update_time = Column(DateTime, nullable=True, default=datetime.now(), comment='更新时间')
    remark = Column(String(500), nullable=True, default='', comment='备注')
